<template>
	<view class="pay-pages">
		<view class="info-block">
			<image :src="imgStorage+'/login/success.png'" class="result-img"></image>
			<view class="title">缴费成功</view>
			<uni-table border stripe emptyText="-">
				<uni-tr>
					<uni-th align="center" width="170">类目</uni-th>
					<uni-th align="center" width="170">房租缴纳</uni-th>
				</uni-tr>
				<uni-tr>
					<uni-td align="center">缴费时段</uni-td>
					<uni-td align="center">{{month}}个月</uni-td>
				</uni-tr>
				<uni-tr>
					<uni-td align="center">金额</uni-td>
					<uni-td align="center">{{price}}元</uni-td>
				</uni-tr>
			</uni-table>
			<view class="btn-item">
				<view class="small-btn cancel" @click="switchTab">返回首页</view>
				<view class="small-btn normal" @click="navigate('/page_pack/my_pages/pay_record/rent')">查看缴费记录</view>
				<view class="small-btn normal " @click="navigate('/page_pack/my_pages/pay_record/receipt')">
					<view class="iconfont icon-xiazai"></view>下载收据
				</view>
			</view>
			<!-- <view class="btn normal" @click="navigate('/page_pack/rent_payment/arrears')">下一步</view> -->
		</view>
		<view class="invoice">若开具发票，点击申请</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				price: '',
				month: ''
			}
		},
		methods: {

		},
		onLoad(e) {
			this.price = e.price
			this.month = e.month
		}
	}
</script>

<style lang="scss" scoped>
	.pay-pages {
		height: 100vh;
		width: 100%;
		background-color: #ffffff;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx;

		.info-block {
			width: 100%;
			height: 75vh;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			.result-img {
				width: 260rpx;
				height: 260rpx;
			}

			.title {
				font-size: 34rpx;
				font-weight: bold;
				margin-top: 40rpx;
				margin-bottom: 40rpx;
			}

			.btn-item {
				margin-top: 50rpx;
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.small-btn {
					width: 220rpx;
					height: 90rpx;
					font-size: 28rpx;
					border-radius: 10px;

					.iconfont {
						margin-right: 20rpx;
						font-size: 34rpx;
					}
				}
			}

			.btn {
				width: 100%;
				border-radius: 20rpx;
				margin-top: 30rpx;
				height: 90rpx;
				font-size: 30rpx;
			}
		}

		.invoice {
			color: $theme-color;
			font-size: 28rpx;
			margin-bottom: 30rpx;
		}
	}
</style>